package net.lzzy.lxq;

import javax.swing.*;

public class ServiceFrame extends JFrame {
    public static void main(String[] args) {
        new ServiceFrame();
    }

    public ServiceFrame(){
        setTitle("服务监视器");
        setSize(500,500);
        JButton start=new JButton("启动");
        add(start);
        start.setSize(500,50);
        start.addActionListener(e -> {
            DemoApplication.main(new String[]{});
            start.setText("服务已启动");
        });
        setVisible(true);
    }
}
